//前端路由
const router = require('koa-router')
// import KoaRouter from 'koa-router'
// import controllers from '../controllers'
// import moment from 'moment'
const routers = new router()

// 请求接口校验中间件
// const checkfn = controllers.common.checkRequestUrl;

/*-------------------------------------首页相关-----------------------------------------------*/

/*首页页面*/
const indexRoute = (router)=>{
    routers.get(['/home'], async(ctx, next) => {
        ctx.body = render('home',{
          title : 'Koa2 Test!'
        });
    });
}
module.exports = indexRoute






